package objects2;

import java.io.Serializable;

public class User implements Serializable {
    private String loginName;

    public User() {
    }

    public User(String loginName, String passName, String userName, int age) {
        this.loginName = loginName;
        this.passName = passName;
        this.userName = userName;
        this.age = age;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassName() {
        return passName;
    }

    public void setPassName(String passName) {
        this.passName = passName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "loginName='" + loginName + '\'' +
                ", passName='" + passName + '\'' +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }

    private String passName;
    private String userName;
    private int age;
}
